/*! \file Window.cpp
 *	\brief 
 *
 *	created:	2010/02/11
 *	created:	11:2:2010   5:09
 *	filename: 	c:\src\gag-engine\libs\app\Window.cpp
 *	file path:	c:\src\gag-engine\libs\app
 *	file base:	Window
 *	file ext:	cpp
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */

#include "app/stdafx.h"
#include "Window.h"
#include "WindowImpl.h"

namespace tt{
namespace app{

Window::Window( ScopedPtr<WindowImpl>& impl )
: m_impl()
{
	m_impl.swap(impl);
}

Window::~Window()
{

}

void Window::setFullscreen( bool value )
{
	m_impl->setFullscreen(value);
}

bool Window::fullscreen() const
{
	return m_impl->fullscreen();
}

void Window::create( const WindowBounds& bounds )
{
	m_impl->create(bounds);
}

void Window::show( WindowShowType value )
{
	m_impl->show(value);
}

bool Window::update()
{
	return m_impl->update();
}

WindowBounds Window::bounds() const
{
	return m_impl->bounds();
}

} //namespace app
} //namespace tt
